package com.woniuxy.carlife.carlifenewcomplaintsweb.config;



import com.woniuxy.carlife.carlifenewcomplaintsweb.utils.MinioTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yp
 * @ClassName:BaseConfig
 * @Description:
 * @date 2021/4/8 15:03
 **/
@Configuration
public class BaseConfig {
    @Autowired
    private MinioConfig minioConfig;

    @Bean
    public MinioTemplate createMinioTemplate(){
        MinioTemplate minioTemplate=new MinioTemplate(minioConfig);
        return minioTemplate;
    }
}
